package io.renren.wh.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.wh.merchant.entity.RateChannelEntity;
import io.renren.wh.merchant.entity.RateEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RateService extends IService<RateEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void insertRateChannel(@Param("list") List<RateChannelEntity> list);

    //查询费率已选通道
    List<Integer> queryChannelByRateId(Integer rateId);

    RateEntity queryByMerchantidAndInterfacecode(Integer merchantId,Integer payType);

    List<RateEntity> queryByMerchantId(Integer merchantId);
}

